<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
use Illuminate\Routing\Router;

Route::get('test','\App\Http\Controllers\TestController@index')->middleware('checkage:lisheng');


Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace')
], function (Router $router) {


	$router->get('auth/login','\Lisheng\HiAdmin\Controllers\HiAdminController@getLogin');
	$router->post('auth/login','\Lisheng\HiAdmin\Controllers\HiAdminController@postLogin');
	$router->get('home', '\Lisheng\HiAdmin\Controllers\HomeController@index');
	$router->get('auth/login', 'HiAdminController@getLogin');
    $router->post('auth/login', 'HiAdminController@postLogin');


});


// Auth::routes();
